package pres.lnk.learn.designpattern.r_mediator;

/**
 * 中介者
 * @Author lnk
 * @Date 2018/6/4
 */
public class Mediator extends AbstractMediator {

    public Mediator(BusinessA businessA, BusinessB businessB) {
        super(businessA, businessB);
    }

    @Override
    void runA() {
        businessA.run();
    }

    @Override
    void runB() {
        businessB.run();
    }
}
